package com.sly.slf4jmdc.controller;

import com.sly.slf4jmdc.feign.DemoFeign;
import com.sly.slf4jmdc.service.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * demo controller
 *
 * @author SLY
 * @date 2022/3/10
 */
@Slf4j
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private DemoService demoService;

    @RequestMapping("/test01")
    public Object test01(){
        log.info("Controller日志");
        return demoService.test01();
    }
}
